{{ $teams := .Site.Data.members.teams }}
{{ $members := .Site.Data.members.members }}
{{ $emeriti := .Site.Data.members.emeriti }}

<ul>
{{ range $members }}
    <li>
        {{ .name }}
        {{ if .roles }}
            (
            {{ range $i, $role := .roles }}
                {{ $teams := index $teams . }}
                {{ with $teams }}
                    {{ if $i }},&nbsp;{{ end }}
                    {{ if .page }}
                        <a href="{{ .page }}">{{ .list_name }}</a>
                    {{ else }}
                        {{ .list_name }}
                    {{ end }}                    
                {{ end }} 
            {{ end }}
            )
        {{ end }}
    </li>
{{ end }}
</ul>

<p>In addition, the following individuals are emeritus members of the XMPP Standards Foundation:</p>

<ul>
    {{ range $emeriti }}
        <li>
            {{ .name }}
            {{ if .roles }}
                (
                {{ range $i, $role := .roles }}
                    {{ $teams := index $teams . }}
                    {{ with $teams }}
                        {{ if $i }},&nbsp;{{ end }}
                        {{ if .page }}
                            <a href="{{ .page }}">{{ .list_name }}</a>
                        {{ else }}
                            {{ .list_name }}
                        {{ end }}                    
                    {{ end }} 
                {{ end }}
                )
            {{ end }}
        </li>
    {{ end }}
</ul>
   
